<div class="breadcrumb">
	{$template.title|escape:"html":"UTF-8"}
</div>

<table class="table data plugins">
	<thead>	
	</thead>
	<tbody>
		{foreach from="`$template.plugins`" item="plugin"}{if !$plugin.context or $plugin.context == 'template'}
		<tr class="{cycle values=",alt" advance=false}" id="{$plugin.file|regex_replace:'/[\.\/]/':'_'}">
			<td class="famfamfam"><input type="checkbox" name="template[plugins][{$plugin.file}][enabled]" value="1" {if $plugin.enabled}checked="checked"{/if} /></td>
			<td><strong>{$plugin.name}</strong>{if $plugin.description}<br />
				{$plugin.description}{/if}</td>
			<td class="famfamfam"></td>
		</tr>
		<tr class="{cycle values=",alt"}" id="{$plugin.file|regex_replace:'/[\.\/]/':'_'}_config" {if !$plugin.enabled} style="display:none"{/if}>
			<td class="famfamfam"></td>
			<td><textarea name="template[plugins][{$plugin.file}][config]">{$plugin.config}</textarea><br />
			{if $plugin.instructions}{$plugin.instructions}{/if}</td>
			<td class="famfamfam"></td>
		</tr>
		{/if}{/foreach}
	</tbody>
</table>
